﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Koala.Pro.CodeGenerator.UI.DatabaseModel.Schema
{
    public class NameElement
    {
        private CString name;

        private CString alias;

        public CString Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }

        public CString Alias
        {
            get
            {
                return alias;
            }
            set
            {
                alias = value;
            }
        }

        public NameElement(string name)
            : this(name, name)
        {
        }

        public NameElement(string name, string alias)
        {
            this.name = new CString(name);
            this.alias = new CString(alias);
        }

        public override string ToString()
        {
            return name.ToString();
        }
    }
}
